*** Settings ***
Resource          elements.robot
Library           Selenium2Library

*** Keywords ***
登录验证流程
    [Arguments]    ${url}    ${username}    ${password}    ${text}
    Open Browser    ${url}    chrome
    Input Text    id=username_field    ${username}
    Input Text    id=password_field    ${password}
    Click Button    id=login_button
    Page Should Contain    ${text}
    Close Browser
